package com.daxia.bumall.common;

public enum ScoreProductType {
    Real(1, "实物商品"), 
    Activity(2, "积分抽奖");

    private int value;
    private String remark;

    private ScoreProductType(int value, String remark) {
        this.value = value;
        this.remark = remark;
    }

    public int getValue() {
        return value;
    }

    public String getRemark() {
        return remark;
    }

    public static ScoreProductType getByValue(int value) {
        for (ScoreProductType o : ScoreProductType.values()) {
            if (o.getValue() == value) {
                return o;
            }
        }
        return null;
    }
}